modify lib and test sources to conform to jshint and jsrc specs