checks for an element periodically, then runs script
function checkForItem(elementName) {
if ($(elementName).length >= 1) {
clearInterval(elementChecker);
//Perform whatever actions you want, here.
}
}
var elementChecker = setInterval(function() { checkForItem(".someElement"); }, 500);