JavaScript: Continuously loop through children using jQuery