Wiki page cleanup/fixes

Pulling wiki page code outside.
Cleanup declarations (it fixed some bugs that new reddit html
introduced)