Update index.js

fixed output mistake