JavaScript OOP - Objects attributes and values