Fixed bug when not specifying partials directory, also did code quality changes, runs jshint