Javascript only works when logged out

I’ve been adding Javacript to Drupal 8 via an .info.yml file as below: name: tnt description: Drupal 8 starter theme type: theme core: 8.x libraries: – tnt/global-styling regions: header: ‘Header’ primary_menu: ‘Primary menu’ breadcrumb: ‘Breadcrumb’ content: ‘Content’ sidebar_first: ‘Sidebar first’ footer_first: ‘Footer first’ And a[…]