Removed unused functions from model.js. Closes #1