changed sample.html to be a better one-line thing, hopefully
for srcdoc things
FileReader didnt work in MSIE9. Introduced proper feature detection