more index.js search work