make js config vary by environment