README: Add JavaScript syntax and API description