on Bill's suggestion make sure deviceReady fires immediately on non-cordova device, use variables to shorten a bit the sniff file.