javascript static function in class