In any case, here's the original gist, which doesn't seem to have the same problem: https://gist.github.com/ryanolsonk/e33bf9e89677da9fe8ce