clean up a little js
update js to more mvc
fix the javascript not being loaded because of turbolinks