Updates main.js so that it only runs once per page.
Updates the patron profile rule to use a simple action.