added jquery factory to reset and clear all form fields