Animation JPEG/PNG strip with JavaScript