added main.js to javascripts
modified application.html file to add templates