I’m not claiming credit for this snippet – a collaborator who prefers to remain anonymous (how mysterious) adapted it from a snippet he (ooh, a clue) found online.

[gist id=”1885364″]

Let me know if it works for you people 🙂