Example of js dyanmically replacing plots on a webpage with a dropdown select box