fix for GCM to work with Google AppScript