Iwillig/xhr promise

@bcamper 

Can't remember exactly, but I think it is what fixes those parse errors in FF (where it tries to interpret YAML, GLSL, and other files as XML/HTML).