fixing panels height with javascript