Use Drupal.settings instead of drupalSettings here and everwhere else (except where it can be removed, as noted above and below).