Minor JS optimization for var usage of post select