location lat long inside onload function