Fix CoffeeScript syntax to prevent error on page