setTimeout is passed a function instead of text