Minimal model implementation for any js environment