Some JavaScript changes to ball reset.