Added JS libraries for purl and base64.
Updated main.js to use purl and base64.