javascript truth updated