changed JS to switch bgimage instead bg color