Basic of javascript OOPS