If dataType is set give it type precedence over url extension. Added case for type text.