JavaScript version of GPAC's MP4Box tool