Updated js to scale bg as well