Update Controller.js

headerNames is broken