Monitise interview question

Check if string is palindrome in JS