Originally created as a refactor of the slurl.com JS for Open Hack 2009