Improve script editor