Html Text Replace Javascript String Compare