Wait for element appearing and speed up jquery selectors