fix emcc calls to js optimizer