oop programing on javascript like a oop progra