private static function isJavaScriptView($viewName) { return Strings::endsWith($viewName, '.js') || Strings::endsWith($viewName, '_js'); }