OO style js