[NSString stringAsJSExpression] and .isJSExpression to prevent multiple replacements and simplify cases for direct JS expression