I have animation by JavaScript and I want to add some sort of delay after it and before it execute second part of the code. similar to Ajax success / done functionality<