Hopefully fixed the exporting code in model.js