added defer attrs to the script tags