Going through the exercises of the JS Ninja book by John Resig