Rewriting js to coffeescript with turbolinks compatibility

[#207]
Merge pull request #133 from gotar/207-fixing-javascript-scripts

Rewriting js to coffeescript with turbolinks compatibility