a simple refactor example from ember.js globals to modules