Useful Javascript class that gets the correct Mime Types by file extension.