adding typehead javascript