Hi Bob,
If you actually wanted to use requirejs you would download bridge.min.js to your local directory and then include bridge like this:
require(["lib/bridge"], function(util) {
//This function is called when lib/bridge.js is loaded.
//If util.js calls define(), then this function is not fired until
//util's dependencies have loaded, and the util argument will hold
//the module value for "helper/util".
});
However, the require('bridge-js') you are referencing is for use in nodejs, not in the browser. So, if you don't care to use requirejs (and you don't have to) you can simply just put the bridge script tag in your html:
and the Bridge variable should be available to you when the page has finished loading.
See this line:
Client-side Javascript specific note: This tutorial shows typical node.js usage. If you are following this tutorial using Javascript in the web browser, please omit lines using the require function.
HTH!
Ian Serlin
Owner Useful IO LLC