Clean up and optimize the way the code is injected
Clean up and optimize the way the code is injected

The latter is actually a fix, but nobody read detailed commit messages :)
So, now $('script').first().after() is used instead of .append().

bgromov/wiki-mathjax,Kriechi/wiki-mathjax