Adding guidelines for JavaScript performance

Adding some examples and descriptions of ways to prevent JavaScript
performance snags to the style guide.