fix for nested loops

JQuery insert{After,Before} does not work inside DocumentFragment.
Native DOM used.
bump version to 0.3.1