WP-2813 adding javascript