Fixing Sysex buffering

The original code tries to truncate the Sysex buffer by setting the
length to 0. But since it is a typed array, this will either not work
(Firefox) or error out (Chrome).

Fixes #37