Integration with HTML::Mason 

<%perl>
    my $self = $m->request_comp;
    $self->call_method('add_js_file',    'jquery-1.3.2.min.js');
    $self->call_method('add_js_file',    'jquery.bgiframe.pack.js');
    $self->call_method('add_js_file',    'jquery.autocomplete.js');
    $self->call_method('add_js_snippet', $m->content);
    $self->call_method('add_css_file',   'jquery.autocomplete.css');
</%perl>\