fixing bugs with javascript around lineups