fix bug where animate action breaks JS