resolve JHint warnings