[Finish #63095440] Switch to a defined url for the api endpoint found in js/variables.js