phantomas.spy: improve mocking

Copy custom properties of original function to the mocked one, so spying $.find doesn't break the page completely