add JS version of model