added functionality to use getlatlong via ajax