Jshint fixes

issues with trailing `,` after object property definitions (causing problems in IE). code format to tabs. node script as shell. rebuild. removed redundant variable re-declarations when argument not passed.