removing "localhost" for ajax calls