Added defer attribute to script tag