find ascii value of a character javascript