moving search timeout to app.js to fix a null.property error on library update