fix jslint error: unused variable in controller