write a javascript program to check whether a string is palindrome or not