travis javascript and top and bottom search functions