Move rotating globe code out to separate file