[BUG #6645] cleaning up resources/javascripts

- base.js, collection.js stem from the pre-q/baselib-style low-level APIs
  that are no longer in use