javascript static function