js style fixes according to our jshintrc rules