Execute JavaScript code from a plugin once after load

Render a modal conditionally given some user custom_fields. The work is related to this Force password change after login