add alert function while store initialize in main.js and set platform specific phonegap js