ready to use js to set panel widths and heights