fixed item ordering javascript.