update for useage with grunt and fix jshint stuff in js/main