2nd attempt working with JavaScript and jQuery