removed application/javascript
renamed mime_types to media_types