My solution of JavaScript koans