Better column ordering in JavaScript, too