Update recorder.js

Replace function did not replace all classes, script failed on clicking dom items with more then 2 classes