Fixed repeated defining of local variables in reportController.js.
Converted object bracket notation to dot notation.