update readme and js api