This js looks legit. However, since base.html gets used by all of the other templates in our app, let's keep the page-specific scripts in page-specific templates -- in other words try moving this page-specific script to home.html's content block.