fix bootstrap.js: scripts inserted with document.write are not loaded until after the script block closes