New canvas: JSHint fixes; left + right mouse button fix