Replaced extends with faster and copy-everything impl. Removed prettyfier to make browser version real small.