LDEV-2824: Revert changes made by previous attempt to workaround Chrome and Safari XSS detection. Replace "javascript" word in submitted Wiki pages with another token and replace it back on server side, so returning code is not identical to submitted one and XSS protection does not kick in. Clean up unnecessary methods and calls.