Finished translation to coffeescript