Removed all js from temlpate folder

and put the js in the js folder and linked to them in the html file