Add indexof to package.json and fix engine