Set up apos.data BEFORE domready