No need for `layoutscripts` block here. That's for layout.html only. You can remove this line and the endblock line below. Just use `footerscripts`.