replaced "for" on "forEach" in function removeById()