added view tests, jshintrc, codestyle fixes