Moved javascript changes from application.js to posts.coffee as we don't need to load it for every page