adds script block to base.html