added figure js