My entry to the JS1K Spring'13 competition.