Got rid of device.name - trying to persuade phonegap to work
Added OnDeviceReady