my solutions to the javascript-koans exercise