protected function loadThemedJS($name)
    {
        if ($this->isDevServerActive()) {
            Requirements::javascript($this->getDevServerURL($this->ext($name, 'js')));
        } else {
            Requirements::themedJavascript($name);
        }
    }