Fixing some errors in replay and bringing it in line with CFF.
Fixing all of the errors introduced by the updated jscompiler.
Now warning/error free!