Refactoring form builder to use jQuery extension methods to clean up the code and support binding elements for field settings