Updated jshintrc and associated cleanups. Use of assert for tests.