JavaScript implementation of NAND: Sigmoid