Add JSTimeoutHandler and unit test.