make spec comply with jshint specification, and add re implement
mouseState, with adequate tests