unhardcoding server IP address for AJAX request