Starting to remove dependency on underscore

Added functions to static.js to allow dependency on underscore to be
removed while retaining readability. Base cheerio class, the attributes
API, and the renderer are no longer dependent on underscore.

All test pass for these files.