I just discovered jsfiddle.net. It's a website that lets you type (or paste) HTML, CSS and JS code and load a specific JavaScript library to test its effects live. It also gives you a "JSLint" link which checks the syntax of your JavaScript.
Great tool for web developers doing occasional JavaScript coding!