moved localStorage debug to editor debug.js