change the htmls so the first line is a json string; choosefile.js will read this line and parse it into a javascript variable " objects\