document.getElementById("button").addEventListener('click', function (e) {deepThought.alertAnswer();});
var deepThought = {
...
onLoad: function () {
var a = this;
document.getElementById("button").addEventListener('click', function (e) {a.alertAnswer();});
}
}