Javascript Help - CommonJS (Node.js) vs AMD (RequireJS)

Hi,

Edit: Basically my question is how do I use this: https://github.com/openpgpjs/openpgpjs

I'm trying to implement a javascript library called openpgp.js (https://github.com/openpgpjs/openpgpjs), however I have little knowledge on script loaders and have no idea which way to go.

My site's hosted on a GoDaddy shared server (I heard this was probably a mistake) and apparantly you can't install Node.js. I can't find any info on other ways to implement CommonJS on these servers so instead I'm thinking about using AMD since it doesn't require any server side tools and works more in the clients browser.

So basically my question is how do I use openpgp.js? Will loading the script with AMD (using RequireJS) cause any issues and will I have to convert any of the code?

If both are bad ideas then could I just load openpgp.js and its dependencies in script tags?

Any help would be much appreciated, for a start I just want to get the below code working so an example of code will help me out alot!

(Forgot to mention it's a Linux server with cPanel)

Encryption:

var openpgp = require('openpgp');

var key = '-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----';
var publicKey = openpgp.key.readArmored(key);

openpgp.encryptMessage(publicKey.keys, 'Hello, World!').then(function(pgpMessage) {
    // success
}).catch(function(error) {
    // failure
});