Added a BASE_URL variable to JS calls