remove console logs and add document ready