more refactoring, minifying content inside script tags on post content,
latex bug fix