JS - correct typo
Bug in locateByLayer du to fid