If you ask the user to manually select the .bin file to be loaded, the code could work also locally, regardless of local CORS restrictions: https://github.com/jumpjack/ReadWriteJS