Could you post a sample file with your setup?
Not sure if it is what you want but try this:
var firstS = sym.createChildSymbol("Symbol_1", "container1");
var firstS = sym.createChildSymbol("Symbol_2", "container1");
At least, this is the way to add your symbols in your container and you can use that to replace what you want where you want.