/ Published in: JavaScript
two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)
URL: http://ejohn.org/blog/search-and-dont-replace/