// Wait for an element to appear, then execute callback
function watchForElement(id, callback){
	var timer = setInterval(function(){
		if(document.getElementById(id)){
			clearInterval(timer);
			callback();
		}
	}, 20);
}
