Models rewritten to coffeescript