Javascript Ember files changed to be in a closure