Create idgenerator.js