Asyc loading script tag generating function