javascript class exercise done