Update index.js

recolored dots, fixed acceleration tuning, added collision detection