Simulate PDP-11/40 by javascript.