check if string contains only alphanumeric characters javascript