Fix examples to JS for consistency