js file for partition model.