Object Oriented features implementation in JS