update js for model translation