Sourcing the JavaScript into Your .html Document
Sourcing the required music-object.js JavaScript file is the same as having that code in your .html document. The many lines of code that would be involved if you did not source the JavaScript would be overwhelm some code miners and possibly signal coding beginners to bail out. Those lines and lines of JavaScript are conveniently premade by Beatnik and available for free. Which makes the job a lot easier.
Your .html File
You must source the required music-object.js JavaScript with the following code in the highlighted area within your .html document. You must also embed the stub.rmf into your document to complete the syntax requirements. Don't worry: there's a single link to download both the Music Object and the stub.rmf in "Step 2."
Make sure you have the correct file path set for your document to source the required music-object.js JavaScript and the stub.rmf file. If you put these documents in the same directory you do not have to worry about the ../ before the file names, if not, add more ../../ to go up a directory level.
Their Code
Now that these documents have been sourced you must go to the Beatnik website and download the necessary JavaScripts and the Music Object Extension. In this case it is the music-object.js and the stub.rmf file, which can be downloaded from this page. You'll need both. The music-object.js must always be sourced first (at the top) when using multiple Music Object Extensions. Keep that in mind for future reference.