Make popup functions public. Add popup events.
Add event listener helpers.
Update to match revised code.
Add in lightweight Bootstrap CSS.