The layout "document" uses the copied jQuery file `jquery-3.2.1.min.js`. Delete this file and use it from the `jquery` npm package.