merging mouse.js