Fix transposition error in example JS in readme.md

The error seems to have been added in ea2b4ed9782a3e645c1ce79f57bea693d4c3c948
Merge pull request #365 from omni5cience/patch-1

Fix transposition error in example JS in readme.md