load scripts with defer