How have I never come across jsfiddle.net before? Incredibly handy for rapid webdev.