trying to play with type ahead in javascript.