Repair javascript and add seriesStack as config value