Update rc_openpgpjs.js

Add some documentation to js functions and some housekeeping.