Refactored. Saves snippet once and reference from there.

Originally, I was getting the rendered code snippet on each click event (bad bad bad). I'm saving that now on init. Just generally better.