update Makefile and fix error in controller.js