JSAnimation bug fix

Fixed JSAnimation consecutive frames bug and updated html_writer.