Add a hook to have the login view execute JavaScript when a page loads