refactor:accepts both text/javascript and application/javascript for js provide_condition_spec.rb