More threshold and timing tweaks.
Adds port of Dick Higgins' Hank and Mary from FORTRAN to JS.