I have a multi-page form.
I would like to execute some custom JavaScript on a specific page.
I understand that I can retrieve the current page number by following these instructions, however, I'm not sure how I can retrieve the value of the $current_page variable and echo it to the DOM so that I can check for it and execute my JavaScript.