Added animation styles element to the HTML instead of dynamically adding it via Javascript.