use ember.js as a cross plaform javascript library