msw animation javascript