Put FSM canvas and stats container into a div

Totally didn't have to fix up for global variables the last commit
missed.