fixing bad js lol