Update static.js

Fix to work with NodeJS 10.x or later.
Merge pull request #9 from scottlinux/master

Update static.js