Added JS implementation of Pi Type Library