fix mouse wheel deltas for closure compiler in html5 API, and add some closure testing; #2214