Update avalon.js

Fix allways remove the first one item.