javascript booleans

booleans and booean object cannot be safely compared.