adds bg gradients, js lang failsafe