JavaScript implementation of NAND: Threshold