Fix js conditional.