Fix variables

There is fix of missed keywords `var` and splitting of `Recorder`, `Resumer` classes.
With this declaration `Recorder` and `Resumer` are aliases and have shared prototype, they are not different classes.