Mouse event refactoring and bug fix for Firefox
Linted pixelboards.js and some other cleanup