move baseUrl setting out of init.js into index.html