JavaScript Compare Boolean DataType