function onDeviceReady() {
  window.StatusBar.hide();
  window.location.href =
    'https://app.illuminsight.com/?r=source~phonegap-' +
    device.platform.split(' ')[0].toLowerCase();
}

document.addEventListener('deviceready', onDeviceReady, false);
