javascripts katas form codewars.com