Clears up a few points about the JavaScript section

Adds some examples of good and bad methods.
Maybe put this in it's own "example" file just to keep this clean?