add getElements.js for model