Classes rewritten to work with Ember.js.