checking loading classes in document.ready