A look at using best practices and avoiding bad assumptions when writing JavaScript for WordPress plugins and themes.