Add anchor tags for making captions for javascript