test js if condional