iOS safari can't handle string.repeat