The EE global only has username and shouldn't be relied upon as it's not a formal documented method to get information (and so could change or be manipulated).
You can access all the user information via the session class:
Add your own external JS file:
ee()->add_js_script('file', 'insert filename here');
The Docs on the CP class can be found here. Full Developer documentation here.
Note: These classes are automatically available from within your module/extension and don't have to be loaded.