Update index.js

updated dataobject and name of some variable