Javascript: Booklet