Use ProgressEvent constructor if available.

Firefox fails on the older createEvent initialization style.