added templating functionality to client.js. added dependencies for searchResults
merge