replace http by jquery ajax