JS errors in Jotform script when custom script is added to source - form collapse not toggling