Fix jshint and correctly merge pathOptions.
Fix onRemove problem with a little more refactoring.
adding a screenshot