Fix subPanels() in forum_fn.js

Fix subPanels() code
Use HTML5 data attributes instead of including JS

http://tracker.phpbb.com/browse/PHPBB3-11563