code for a tutorial about reading binary files with javascript