Capture and replay Math.random
Traverse HEAD and BODY by name

jQuery adds an empty style node (probably when `.css` is called), but where it
lands in the DOM seems to be non-deterministic, which messes up the traversal
from HTML to BODY. So, traverse by name instead.
Tile game demo