Created snippetSearch directive controller