Updating packages, fixing broken document.js