javascript static function variable