added jquery functionality to dynamically create forms