little fix for bg/no-bg js