improve js configs