Javascript false expressions evaluating to true