refs #482 - fixed issues pointed by jshint