Record and Replay Mocking for Javascript