Updated logout script so that logout function works on azure hosted site.