Change device.js' device to device.js to avoid issues with Cordova