Have since solved this Use the dynamic data picker inside the Toolbox action to insert values such as Page's B4 directly into your JavaScript code.
Page's B4