fix JS error when replaying in certain conditions (thanks gbe)
fix JS error when replaying in certain conditions (thanks gbe)

breunigs/hipsterpizza,nnev/hipsterpizza,nnev/hipsterpizza,breunigs/hipsterpizza,nnev/hipsterpizza,breunigs/hipsterpizza,breunigs/hipsterpizza,nnev/hipsterpizza