Generic Titanium js (gcm.js support)