add html substring js + test js