updated model endpoint template to correctly load when.js
1.0.9