setAttribute added to js script