Also log to the javascript console when available