adding basic animation template to js file