Extracted js config into its own class.