Small JS changes to recording