added best practices to JS section.