fixing fileTransfer sample

Discovered that the fileWriter piece of xhr2.html was no longer working. The file was not being written before the invoke command was called.  Ended up refactoring the snippet of code to correct this.  Also, while I was in there, added appropriate title HTML elements and updated the references to webworks.js.