waitfor value command doesn't work properly : I tried to run this code but it doesn't work properly. It got stuck on line 3 and gives error "timeout, element not found".

ie.open g1ant.com    window ‴✱internet explorer✱‴    ie.waitforvalue script document.getElementsByClassName("footer_stuff").length expectedvalue 1    dialog ‴Page loaded!‴    ie.close