finished javascript updating for message and topic posts