Add column mode for javascript