How To Disable A If Statement In Javascript