Fixed syntax errors in controller.js and upload.html