minor changes to JS scheme