javascript check if boolean is false