Fix mixing coffeescript with javascript bug