Escaping captions in javascript string instead of template tag, for IE