moved makeapisearch in app.js