Javascript  implementation of econ model uix.