javascript-based and crossplatform solution for .compare

adds a dependency to the 'diff' npm package