Minor changes in the code and added cordova loader