Clean up analyzer coffeescript

Tried to make the finding minroot bit nicer... didn't work. Heh.