Replace Drupal.settings by drupalSettings
Remove theme static method. hook_theme does not support OOP.