Javascript Wait Before Brushing