Quick and dirty binary structure reading in Javascript