fixing syntax error on apps.js