Would you prefer it like this?

https://gist.github.com/duk3luk3/6593934