SDK - defines

Add BASE_PATH to define so only this needs to be changed in JS
location.href instead of every single one.