Working on new javascript models