Check if a string can be used as a JavaScript variable name