Enh: refactored jquery code on journal entry form