Update index.js

just one last minute change to validate the entered search string for ampersands.