Got the javascript files working

Rearranged files ang got javascript working updating url_for