JavaScript function to take in an array of strings that will be checked for existence on the page.