Use ResourceLoader to load script