update JS scheme