Is there a way to tell if the mimetype is supported in js?