javascript  model load  server  &  client