Converted home CoffeeScript back to JavaScript