current location function improved

current location function improved now working for firefox unfortunately
it requires jquery