ready to use js for panel management