merged a bunch of $.append()'s into one