Lock sinon.js to fix a travis exception
Passes model and index to emptyViewOptions.
Fix testcase typo
Replace region innerHTML with jquery html.

Fixes #2027