translated most js to coffeescript