The javascript generator. This class encapsulates the javascript injected into a page for use by bright.js