code: def remove_stale_javascripts(portal):
      
      logger.info("Removing stale javascripts ...")
      for js in JAVASCRIPTS_TO_REMOVE:
          logger.info("Unregistering JS %s" % js)
          portal.portal_javascripts.unregisterResource(js)
docs: Removes stale javascripts