Fix jquery conditional