renamed model.js to piDataModel.js