You can try to define the console function so it will not error out because of the console not being available. But because it's trying to write to the console, I'm assuming there may be an error which it's trying to tell you about.
Taken from HTML5 Boilerplate. Just place this self executing function before you add Aloha
(preferably before you add any javascript at all, this should be first).
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = (window.console = window.console || {});
while (length--) {
method = methods[length];
// Only stub undefined methods.
if (!console[method]) {
console[method] = noop;
}
}
}());