Better yet, use `onload`. Here's an example from app.js, which runs the home page: https://github.com/MediaCrush/MediaCrush/blob/master/static/app.js#L86