move start js to a separate js file (index.html is only html now :-) ) make jquery.tmpl.js as a require module to help loading