moved js to proper file
cleaned up index.html.erb