EAGLESIX-3157: fix jshint issues in lib/index.js