Update Controller.js

headerNames variable created for document.ready