Search term can include capital letters
Moves d3 update function into separate js file