code cleanup, js prep for endless scroll

Moved changes from index2 to index. Now taking advantage of the socket-y
goodness myself. Tasty.