Ref: improved JQuery code for post form
Enh: Added flag for closing posts