[clear] remove js debug and checking for editing