js locating demo