FIPS 140-2, Level 1 validation vs. compilation
I wouldn't give much hope in finding a native Javascript crypto implementation that's FIPS certified.  The reason is zeroization; FIPS is particular about knowing when CSPs [1] are zeroized; Javascript does garbage collection, which means that you're never quite sure when things are zeroized.
And, if by cross-compiling, you mean taking a certified implementation, and automatically converting it into Javascript, well, you won't solve the problem.
Sorry, but I wish I had better news for you.

[1]: Critical Security Parameters; essentially FIPS terminology for keys