Interact with Actions and Pages from a SPA/HTML Template