only call iplocation in index.html