Codestyle changes.

Use Func.prototype to write classes.