Explain critical concepts of JavaScript with image/animation