I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

    unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
    unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
    unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?