lib/misc.js: renamed function parameters to match their purpose
lib/base64.js: fixed the parameter names in JSDoc section