changes to simr.js