Create index.js

the javascript file to create dom elements and add animation to it