javascript static function variables