Fixes after CR

Additionally:
Distance comparision method changed to more precise one without performance degradation.
wow the dooms day
that mobile web team have to use older API than desktop!
as we have to support A2.3 that don't have classList...