fixed javascript error that would not redirect correctly
some js stuff for the forum