docs(README.md): fix javascript errors

Readme's examples should be correct