Javascript excercises solution of http://eloquentjavascript.net/