fix slide panel, remove some errors and prints, identify and move globals into editor.js