Copied from cordova labs so Meteor can access