working on Javascript exercism