Added logicgates to jquery