Add indexof dependency of package.json