Update certificate.js