Update genid.js

not use global