I have two separate slides on a single webpage (basically identical) and currently have the same javascript code repeated twice (with slightly changed vars and function name