adding a new method 'replaceWith'
add extend functions
Merge pull request #19 from Tolia/manipulation.replaceWith

adding a new method 'replaceWith'