Don't forget `var`. Or do it like so: `function Entity() { // ...`