removed magic number from mouse.js