Bug 993990 - Make gaia_apps.js compatible with v1.3