JS class for create a model and link inputs with the data contained in. This class allows the auto publish of the data by post.