Rewrite in Ember.js