Updating js protocol