Models and Javascript file