Include application/javascript when checking content_type