Added browser compatability for bg