Added the ability to use 'helper' functions
Added better comments to the template file
Moved jQuery locally