Tools for dealing with binary files in JavaScript