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.
Merge pull request #2 from anchor/js_order

Reorder tableize function in stacked for firefox