Setting initial animation attributes
Update demo javascript