structure.html, remove the line that says Hello, World and substitute this:
<input id="q" /> <button id="b">Go!</button>
behavior.js, remove the line that says SEARCH.doStuff(); and substitute this:
$.q = document.getElementById('q');
$.b = document.getElementById('b');
$.b.onmouseup = function() { SEARCH.doStuff(); };
Here we are adding two new members to the $ object we declared as a private variable; these will be available throughout the app for as long as the page is running. We're also capturing onmouseup on the button.alert('ding'); to alert($.q.value);prev - http://kentbrewster.com/build-a-search-app/code/code3.html - next