added the 'reference' attribute to each script