started on the JS for the panels