adding jQuery timeout