Log JavaScript errors in the console as well