Remove onbeforeupload attributes instead of setting them to "".

This fixes extra "onbeforeupload" in saved files.
Merge pull request #18 from kmike/onbeforeupload-cleanup

Remove onbeforeupload attributes instead of setting them to ""