Added JS dice and ability to export JS libraries.