Fixing errors in ember.js