readme.md: remove sync return value from JS API build example

fixes #1143
Merge pull request #1145 from jonathanong/patch-1

readme.md: remove sync return value from JS API build example