Add proximity to javascript call, and use proximity to determine equality