Clones JavaScript prototypes