finish js exercise