Update base.js

- Change color display mechanism