Javascript OO assessment.