JavaScript: Understanding Boolean Values