small spelling errors that have been fixed.
fixed JSDoc for function so `replace` is properly described
some more spelling fixes. Fixed another JSDoc with incorrect parameter specifications
more spelling and JSDoc fixes