public static function js()
    {
        $jsPath = dirname(__FILE__) . "/clients/core/KoolReport.js";
        if (is_file($jsPath)) {
            return "<script type='text/javascript'>"
                .preg_replace('/\s+/S', " ", file_get_contents($jsPath)) 
                ."</script>";
        } else {
            throw new \Exception("Could not find KoolReport.js");
        }
    }
public static function js()
    {
        $jsPath = dirname(__FILE__) . "/clients/core/KoolReport.js";
        if (is_file($jsPath)) {
            return "<script type='text/javascript'>"
                .preg_replace('/\s+/S', " ", file_get_contents($jsPath)) 
                ."</script>";
        } else {
            throw new \Exception("Could not find KoolReport.js");
        }
    }
public static function js ( ) { $ jsPath = dirname ( __FILE__ ) . "/clients/core/KoolReport.js" ; if ( is_file ( $ jsPath ) ) { return "<script type='text/javascript'>" . preg_replace ( '/\s+/S' , " " , file_get_contents ( $ jsPath ) ) . "</script>" ; } else { throw new \ Exception ( "Could not find KoolReport.js" ) ; } }
Return the javascript of KoolReport

@return string Javascript of KoolReport
Return the javascript of KoolReport