Issue #1884180 by dawehner: Cleanup base.js for real.

PR for https://drupal.org/node/1884180