Put postInfo() in the js directory