Converted CoffeeScript application to JavaScript