Fix issue with addStyle
Merge pull request #12 from mgrandy/master

addStyle is undefined bug