Fix firefox issue with jquery file upload

In the context of a Firefox add on, window.Blob.prototype is undefined,
probably for security reasons. Instead of accessing it directly, we construct
an instance of Blob and use its function definition.