Everything I want to do is take a ipfs hash and output the corresponding element.

I forked https://github.com/ipfs/js-ipfs/tree/master/examples/browser-script-tag

however when trying to use the API nothing works (replace code with script and it says undefined ??)

could you please provide a single working (static) example ?

It would be great to get started with ipfs