Update index.js

Fixed bugs added xp