Improve glue Javascript, based on "wp-accessify" WP plugin

* Plus, extra public methods required by "wp-accessify" etc.