Update base.js

Fix for EE 2.8+