#NJWT-13 fixed all jshint warnings