select command waits a bit for possible js execution