Fix jslint warnings
add mouse state