some utilities for POO in js