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

fixes #1143