added js for panels