		return img.height;
			}
		}
		// check if the video exists based on the thumbnail image height
		// put on the top to make sure it's working by the time the images load
		function checkExists(element) {
			if(naturalHeight(element) <= 90) {
				// 404 image
				var id = element.parentNode.getAttribute("href").split("?v=")[1]
				try {
					document.querySelector("[data-id=\"" + id + "\"]").className += " hid"
				}
				catch(error) {
					// old browser syntax
					var videos = document.getElementsByTagNa