Removed a console.log
Externalised search module into its own file