only assign window.baseURL if it's not already defined.