Nighthawk App using phonegap