adding a copy next to extend to make sure api#allDocs keeps working even...

... when the base JS object prototypes are enriched. Solving #953.