Adjust js to Ember 1.0.0