Adding a custom js file to a core theme like Seven
Asset injector has been made specifically to carry out the functionality that you stated. Simply install the module &amp; flush cache.

Within configuration you'll see the link Asset injector and there you can select the theme to add your custom CSS/JS.

Hope that helps!