typeof typo and missing var keyword
Merge pull request #5 from targos/fix-serie

typeof typo and missing var keyword