Change constant  URL string to: window.location