Correction in format in controller.js