Updated certificate.js