PhoneGap Push Sample using Java-Script API only