Fix variables

There is fix of missed keywords `var` and splitting of `Recorder`, `Resumer` classes.
I have a strange error in my node-webkit app without `var` declaration.