Replace dash to underscore for javascript settings variable