JS: Check for non-identifiers in dot completion.