Coding style + replace require by define
Merge pull request #31 from fezfez/karma-unittest

Coding style + replace require by define