fixed panel sizing javascript