improved README with info on the Javascript API