fixes js errors when active_console not set