public static function addJS($path) { if (!is_array(self::$js)) { self::$js = array(); } array_push(self::$js, $path); }