A phonegap implementation of SunWatch