Fixed JSHint warning in cockpit.js
Excluding from JSHint warnings commas in front of lines as this is a typical code style in defining require in node.js