make note that a chunk of this code was copied from twitter-comment-field plugin.