deleted new code snippet. made onclick work with initial code. changed ID back to class in index.html