added firefox support for animations