Exposes ActiveRecord records to the Javascript side.