added type parameter to ajax calls in 1.3.6