move ember to its own JS file. Add scoped login