Hold off on deep cloning objects and arrays until *after* having pushed the output reference to mMap (as per the specification and really simplifies my code). Better method names
Make sure objects inherit from their proper prototypes. Remove unused var