Updated to sprockets to and rewrote JavaScript using CoffeeScript