coffeescript to javascript; more json work (with rabl)