splitting javascript config into separate fragment