If you don't have direct access to your WP app but want to trigger events you can paste Javascript into the WordPress UI and have it run.
WordPress automatically wraps all your code in <p>
tags which prevents anything from executing properly- we'll need to stop this. There's a useful extension for WordPress called wpautop which will allow you to pick what pages you don't want this behaviour on and allow you to execute events correctly.
###Steps
- Install the wpautop plugin for your site