You can't do that. The "fmt:message" tag is evaluated on the server as part of the JSP processing which produces the HTML. The Javascript is executed much later, on a different computer, in a different environment (the browser) which doesn't have any access to the resource bundle.
However perhaps evaluating that expression on the server is actually what you want. Is the
string "iqNumberFormatCheck" actually a key to the resource bundle? If so then perhaps the problem is just that you didn't use the fmt:message tag correctly, e.g. by not specifying the resource bundle correctly.