Fixed jshint issues

Resolved `jshint` issues, so now `gulp` gives clean results.
The thought with the factory is to build a property based on configuration, and to handle external dependancies and what not. So what should be passed along to the constructor should be a subset of what was initially sent to the factory, but OK for now :)