Hacked together example of phonegap push notifications