AMD/CommonJS/Global module.
You can inline script tag, then the module will be available as window.log or jQuery.log
log.info("Hello, world!");
or
You can use RequireJS
define(["log"], function (log) {
log.info("Hello, world!");
});
or
You can use Browserify
var log = require('log');
log.info("Hello, world!");