fixed javascript problem with watch position and increased minimum distance