Fix js DisplayList add/remove conditions.