bugfix clear

removing an element doesn't work without setTimeout 0 in a each function.
Merge pull request #2 from luka5/master

bugfix clear