Porting ember over to phonegap