Add MIT license
Remove out-of-date comment in client-side search
Move logic out of view into collection
Missing newline