recorder.js: move buildFileName: function() and start to improve the code quality