console cleanup and conditional document ready for google