Upgrading the WordPress 3.1 find_posts_div + findPosts API to be JavaScript-centric and modal-agnostic