validating with jshint in brackets