fixed a javascript error regarding the commercial bg layers