update index.js with reg info