fix method names in "using the library"

:rainbow:

(btw, javascript is usually camelCased. i'd change those method names, but idk if you want breaking changes)