Phonegap mobile app code for Smart Mall application