javascript problems, refresh hack with external button