JavaScript mocking framework