Update AppController.js

Fixing compiler errors.