Class implementation for NodeJS that respects POO principles (no prototype oriented)