Added a support to set javascript id in fig_to_html.