by Kail, fixed ele.remove func not available in ff