Refactor JS
Refactor JS

Rename method `generateSkewForNextTickAssumingNonaccuracy `, extract method `trueWithProbability `, and moving some functions outside the DOM ready event handler so that it is clearer which functions rely on state.

roryokane/vetinari-clock-simulator,roryokane/vetinari-clock-simulator