Added extra test to see if ProgressEvent is a function and not Object. This solves issue 409