Added option to define the ComponentJS symbol
Fixed content-length calculation and made use of symbol, defined in opts