update scripts array