Remove unused load script function