Rewritten separate pair values as w/h and x/y of JS objs.