Fix load_editor js function