mouse.js tidy