Add docstrings to rc_openpgp.crypto.js, some js housekeeping and fixed a typo