How would I be able to decrypt some encrypted data on the client side of a web application?
E.g.
Assumably I would be able to pass the private key to the browser and use Javascript to decrypt the data.
If you want to stick with JavaScript, then have a look at the LGPL library OpenPGP.js.