online users fix

and jshint cleanup