Update index.js

attempt to get at regId and copy and paste