clean up mouse module to be simply on document