Form generator class with jQuery