rewrite a small passage of the jquery post