GUI-1415: Move inline script on create key pair page to external JS file for CSP compatibility