jQuery and TinyMCE

I have been struggling with jQuery to get TinyMCE to play nice together. I found the solution.