Update js for panels