moved config into shared js file