nodejs code and model