Revert "Revert "Update base.js""

This reverts commit 7914ac3db45b02648841012bada46d4686975faa.