Improve certificate.js to selectively add webclient/webssl objects.

This is based on Habib's feedback:
https://github.com/webinos/Webinos-Platform/pull/447#discussion-diff-2828736

Jira issue: WP-396