Move some panel-specific javascript in specific files.