Might be better to use `domReady` rather than `$(document).ready()`: I've found that `domReady` is a bit more reliable when working with require.js.