A flashlight application based on the cordova framework