p2_format_posts: pass anon fun to document.ready

Don't know why this would possibly make a difference, but it seems to.
Weird.