removing caption from js