added generate-patches.js script for created patches from changed files