Leetcode Check Palindrome Using Javascript Innerhtml Vs Innertext