Converted to coffee script