Properly calculates the buffer offset.
Properly defer size and handle flags.
Removes debugging code.
Adds support for touch in IE10+ mobile.
Updates the minified javascript.