How can I check whether there is a bootstrap.js loaded on page (a file bootstrap.js may be compiled into another big JS file)?
if (typeof([?])=='undefined') { /*bootstrap is not loaded */}
where [?] would be any object or namespace which is defined inside the JS file itself.
The concept of "including" doesn't exist in javascript.