gen html - generate html for javascript gallery