[Yhc] Javascript backend fixed to compile with new Core Types