[ticket/12982] Refactoring: Cleaned up forum_fn.js

PHPBB3-12982