fix issues with jscs and jshint

next part of style changes for both jshint and jscs
some missing files are fixed