PE file format reader in JavaScript