javascript user input timeout