javascript compare two strings as numbers