differentiated onDeviceReady functions in the two different JS files