using deviceReady on index.html for lauching Loader.initLoad()