made search WORK! and fixed observableArray problem

use brackets in an observable array as length
messages().length