Updated javascript replay