moved module code to inline

So that it can use the page data live.