Added defer option for generated script tag