Reorder tableize function in stacked for firefox

Firefox throws an error that the tableize function is undefined if it's
called before it's created.

This error does not happen in Chrome/Chromium, so was not picked up
before.