Update index.js

Add mousemove events instead of change ones so that updates happen instantly.