Minor change to JS and PHP snippets.