rename mimeType property to type to match the html5 file spec