Fixed potential bug with _.extend and prototypes