gave up and did the background with js