Fixed script.js to properly read html tags in captions