Pass JSHint and add removeChild, replaceChild tests
Fixed an #extend bug; added tests for #empty and #extend