would you prefer something like this instead? https://gist.github.com/arthurnn/6600510