You'll need some kind of server code to work with MultiChain, not just Javascript on the client side (unless you want to expose your node's API credentials to the world - NOT a good idea!) The require statement is from PHP, which you could install on your server in order to get the MultiChain Web Demo up and running.