JS version of FpPrty