fix typos; If/Each; make shark example work
fix typo in replaceChild