bonus ball bug fix in js