boolean typo in js