Editor Javascript reordered