missing new on a typeerror