I have some javascript which loads a file based on user input:
function openFile(event) { var input = event.target; var reader = new FileReader(); reader.on