ActiveRecord for CoffeeScript (JS)