minor javascript error checking for picking a team