added clear/remove js methods