update for latest domify api

domify returns document fragment or single element now
fix remove item
add package.json for npm support