JavaScript Exam @01.04.2013 evening

The code is provided AS IS, without any further modifications after the
exam. Probably there are some stupid solutions, caused by the time
running out.