add Master.controller.js from master branch