model JS file