add anonymous functions for IE6 compatability

If you pass a function into a settimeout as an argument, good browsers work fine. However IE6 doesn't like it and it's not a valid argument