Changed main.js to take a binary file input