chapter4 done: a javascript gallery