separate js service,model,util in client