Fixed enumerations in JS cross compile.