Fix bug that made page not work on browsers without console support