separing javascript from _forum.rhtml