Created JavaScript API generator
Adding JSAPI to main. Not used currently.
First iteration of Piledeck! (should live elsewhere) :D