jshint fixes
add factories