Update panels.js