Map<String,Object> model = JSUtils.readJsonModel(jsFile);
if (model == null) {
throw new CompilerErrorException("Can't find metamodel definition in " + jsFile.getAbsolutePath());
}
if (!model.containsKey("$mod-bin")) {
throw new CeylonRunJsException("The JavaScript module " + jsFile +
" is not compatible with the current version of ceylon-js");
} else if (!model.get("$mod-bin").toString().equals(BIN_VERSION)) {
throw new CompilerErrorException(String.format("This Ceylon-JS module has binary version %s is incompatible with the compiler version %s",
model.get("$mod-bin"), BIN_VERSION));
}