removed localhost from ajax calls