Javascript clean up

Removed redundant template files
Moved JS to head inside document ready condition
Moved jQuery reference internally
Added jQuery UI accordion script