Identifies the base url to work correctly with AJAX requests