added script tag on document load