fixing coffeescriptify of javascript object