Using domManip and cleanData

Switched to using domManip and cleanData instead of wrapping all of the
append/removal functions.