Merge plugin for mongoose documents