Renaming window.MimeType to window.mimeType

Chrome now creates a window.MimeType object we have a name collision. Per Hypercube suggested window.mimeType as an alternative.  All of this is non-standard so either def checks to see if the method has already been attached to window before assignment.