update in code with jshint
updated npm we-theme-engine
added tests with mocha and sinon
update in code style