Added js function for getting RDN parts of the DN