javascript check if boolean is true or false