javascript/gallery add title