update readme and change JS calls