fix jshint error in utils.js and add node:true in .jshintrc

first time to contribute
Don't know is it correctly to add node:true in .jsintrc, I need to do this to get rid off "require is not defined" error
please take a look.
Thanks.