trying to resolve double creation of form js code when displayed on same page as list module