more oo in js