The URL for the autocomplete is not correct. What happens when you change rule 7 to this?
Because this URL outputs something: http://www.wolframalpha.com/input/autoc ... qr=0&i=2*2, but the URL in the javascript just outputs null.
I've not tested it myself because honestly I'm too lazy now, but this is definitely part of the problem.
- var result = HTTP.getJSON('http://www.wolframalpha.com/input/autocomplete.jsp?qr=0&i=' + encodeURIComponent(search), 3);
Because this URL outputs something: http://www.wolframalpha.com/input/autoc ... qr=0&i=2*2, but the URL in the javascript just outputs null.
I've not tested it myself because honestly I'm too lazy now, but this is definitely part of the problem.