fixed js code to add/delete subforms