Solution to JavaScript Koans.