changing content_type for uploaded files from application/json to text/javascript