Only output data when content-type header is javascript|json