Javascript Class List Remove Is Not Working