Replaced client/code/app/ee.coffee with JS equivalent