Javascript in an iframe needs to refer to its window.parent to access functionality on the Bubble page.