Fixes for JavaScript base URL defaults