JS cleaning