added JQuery code for adding rows