Support including index.php in js base url if required

- Include ‘index.php’ in the window.config object
- Use window.config.jsdir when setting the requirejs baseUrl