Javascript search

More work on javascript search, using arrow selection