Tightening up register.js.
Tighten up mosaic.js.